package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 youxuan_user
 * 
 * @author admin
 * @date 2021-01-07
 */
public class YouxuanUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 登录类型 */
    @Excel(name = "登录类型")
    private Long loginType;

    /** 开放id */
    @Excel(name = "开放id")
    private String openId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 身份 */
    @Excel(name = "身份")
    private Long level;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 性别 */
    @Excel(name = "性别")
    private Long gender;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtLastLogin;

    /** 登录ip */
    @Excel(name = "登录ip")
    private String lastLoginIp;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 是否老用户 */
    @Excel(name = "是否老用户")
    private Integer oldMan;

    /** 是否为团长 */
    @Excel(name = "是否为团长")
    private String isMerchant;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtUpdate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setLoginType(Long loginType) 
    {
        this.loginType = loginType;
    }

    public Long getLoginType() 
    {
        return loginType;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }
    public void setGmtLastLogin(Date gmtLastLogin) 
    {
        this.gmtLastLogin = gmtLastLogin;
    }

    public Date getGmtLastLogin() 
    {
        return gmtLastLogin;
    }
    public void setLastLoginIp(String lastLoginIp) 
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp() 
    {
        return lastLoginIp;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setOldMan(Integer oldMan) 
    {
        this.oldMan = oldMan;
    }

    public Integer getOldMan() 
    {
        return oldMan;
    }
    public void setIsMerchant(String isMerchant) 
    {
        this.isMerchant = isMerchant;
    }

    public String getIsMerchant() 
    {
        return isMerchant;
    }
    public void setGmtUpdate(Date gmtUpdate) 
    {
        this.gmtUpdate = gmtUpdate;
    }

    public Date getGmtUpdate() 
    {
        return gmtUpdate;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("loginType", getLoginType())
            .append("openId", getOpenId())
            .append("nickname", getNickname())
            .append("avatarUrl", getAvatarUrl())
            .append("level", getLevel())
            .append("birthday", getBirthday())
            .append("gender", getGender())
            .append("gmtLastLogin", getGmtLastLogin())
            .append("lastLoginIp", getLastLoginIp())
            .append("status", getStatus())
            .append("oldMan", getOldMan())
            .append("isMerchant", getIsMerchant())
            .append("gmtUpdate", getGmtUpdate())
            .append("gmtCreate", getGmtCreate())
            .toString();
    }
}
